<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>21_DOM2-低级浏览器-同一个对象绑定同一个事件的执行顺序</title>

        <style>
            div {
                width: 100px;
                height: 100px;
                background-color: aqua;
            }
        </style>
    </head>
    <body>
        <div id="d1"></div>

        <script>
            var div = document.getElementById('d1');

            function f1(){
                console.log(11111);
            }

            div.attachEvent('onclick',f1);

            function f2(){
                console.log(22222);
            }
            div.attachEvent('onclick',f2);
        </script>
    </body>
</html>